package com.jie.component.exception.base;

import lombok.Getter;

import java.util.List;

/**
 * @author jie
 * @version 1.0 2025-02-11
 */
@Getter
public class ValidationException extends BaseException {
    private final Integer code;

    private final List<String> msg;

    public ValidationException(List<String> msg) {
        this.msg = msg;
        this.code = 500;
    }

    public ValidationException(List<String> msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }
}
